package com.xf.auth.controller;

import com.xf.auth.entity.OauthClientDetails;
import com.xf.common.core.entity.FebsResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotBlank;

/**
 * 发送手机验证码
 *
 * @author xufeng
 * @version 1.0
 * @date 2022/3/19
 */
@RestController
public class MobileCodeController {

    @GetMapping("send/{phone}")
    public FebsResponse sendCode(@NotBlank(message = "{required}") @PathVariable String phone) {
        return new FebsResponse().data("");
    }
}
